home *** CD-ROM | disk | FTP | other *** search
- #
- # This test that wstcl will work with even connecting to
- # wserver.
- #
- # To test type the following
- # cat /etc/termcap | wstcl input.tcl
- # You should see the file scrolling on the screen
- #
- proc echoCB {id} {
- set count [gets $id line]
-
- if { $count == -1 } {
- echo "\n\nPASSED input.tcl"
- exit 0
- }
-
- puts stdout "." nonewline
-
- VtRemoveInput $id
- VtAddInput $id echoCB
- }
-
- set f [open /etc/termcap]
-
- VtAddInput $f echoCB
-
- VtMainLoop
-